package com.reborn.mall.api.model.dto;

import com.reborn.mall.api.model.entity.CartItem;
import com.reborn.mall.api.model.entity.Order;
import com.reborn.mall.api.model.entity.OrderItem;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 订单传输对象
 *
 * @author Reborn
 * @since 2020/3/23
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class OrderDTO extends Order {

    private List<CartItem> cartItems;
}
